package com.yummy.convention.page;

public class DefaultPageQuery implements PageQuery{
	private Integer pageNum;
	private Integer pageSize;
	@Override
	public Integer getPageNum() {
		if(pageNum == null || pageNum <= 0) {
			pageNum = 1;
		}
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	@Override
	public Integer getPageSize() {
		if(pageSize == null || pageSize <= 0) {
			pageSize = 20;
		}
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
